﻿//-----------------------------------------------------------------------
// <copyright file="SearchPaneSuggestionsRequestedEventArgs.cs" company="In The Hand Ltd">
//     Copyright © 2013-14 In The Hand Ltd. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace InTheHand.ApplicationModel.Search
{
    /// <summary>
    /// Provides data for a SuggestionsRequested event that is associated with a <see cref="SearchPane"/> object.
    /// </summary>
    public sealed class SearchPaneSuggestionsRequestedEventArgs
    {
        internal SearchPaneSuggestionsRequestedEventArgs(string queryText, SearchPaneSuggestionsRequest request)
        {
            this.QueryText = queryText;
            this.Request = request;
        }

        /// <summary>
        /// The text that the app should provide suggestions for and that was in the search box when the suggestionsrequested event fired.
        /// </summary>
        public string QueryText { get; private set; }

        /// <summary>
        /// An object that stores suggestions and information about the request.
        /// </summary>
        public SearchPaneSuggestionsRequest Request { get; private set; }
    }
}
